/******************************************
 *
 *  config_file_loader.h
 *
 *  Created on: 2012-3-10
 *      Author: Michael
 *       Email: zhongchao.ustc@gmail.com
 *
 *  Copyright (c) Michael Chao Zhong
 *
 ******************************************/

#include <iostream>
#include <string>
#include <fstream>
#include <map>

#ifndef CONFIG_FILE_LOADER_H_
#define CONFIG_FILE_LOADER_H_
#pragma once

class config_file_loader
{
public:
	explicit config_file_loader(const char *config_file_path);

	std::string get(std::string key) const;
	void set(std::string key, std::string value);

private:

	bool load_config_file(const char *config_file_path);

	std::map<std::string, std::string> config_map;
};

#endif // CONFIG_FILE_LOADER_H_
